ARM: Factor out reusable psci_cpu_off_common
authorJan Kiszka <[email protected]>
Tue, 21 Apr 2015 05:18:27 +0000 (07:18 +0200)
committerTom Warren <[email protected]>
Wed, 13 May 2015 16:24:13 +0000 (09:24 -0700)
commitb0206e7d26ebb695421c7c093b13475bed92c54d
tree601828d17ed51324bea38726b1a6ae5a0e40b4eb
parent680f396851b7153f7f4243e1cc8875558b678add
ARM: Factor out reusable psci_cpu_off_common

Move parts of sunxi's psci_cpu_off into psci_cpu_off_common, namely
cache disabling and flushing, clrex and the disabling of SMP for the
dying CPU. These steps are apparently generic for ARMv7 and will be
reused for Tegra124 support.

As the way of disabled SMP is not architectural, though commonly done
via ACLTR, the related function can be overloaded.

CC: Marc Zyngier <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Tested-by: Thierry Reding <[email protected]>
Tested-by: Ian Campbell <[email protected]>
Signed-off-by: Tom Warren <[email protected]>
arch/arm/cpu/armv7/psci.S
arch/arm/cpu/armv7/sunxi/psci.S